To create an absolute URL to a file you can also use "Add file URL" in "Editor" menu and choose the desired file in file dialog.
++ Relative URLs
You can create URLs which are relative to the wiki directory. These start with rel:// followed by the relative position. For HTML export the rel:// is removed to create a relative HTML link (without protocol). For HTML preview they are converted to "file:" URLs.
You can drag a file from Windows Explorer while holding shift key to create a relative URL. This does not work with files ending with ".wiki", these are always absolute and have the "wiki:" protocol.
Example:
rel://../above/andBelow.txt
++ File storage
You can also copy files into a subdirectory of the wiki directory from within WikidPad. See [FileStorage] for details.
++ Images
If an URL file ends with ".jpg", ".gif" or ".png", the URL is automatically shown as an image in preview and HTML export (currently the HTML export does not automatically export the image itself). The URL can be absolute or relative and can point into the file storage.
Example (switch to preview to see the picture):
rel://files/testimg.gif
To show all such URLs as links instead, open "Options" dialog, page "HTML preview/export" and check "Show pics as links in preview" or "Show pics as links in export" or set it temporarily in the export dialog.
For controlling of individual URLs, see next chapter.
++ URL Appendix
You can control details of URL presentation, especially for images, by using an URL appendix. This consists of a '>' character directly after the URL (no space) and some code characters which can be delimited by semicolons. The following codes are defined:
i Show URL as image, even if it has none of the default suffixes
l Show URL as link. 'i' and 'l' are mutually exclusive.
s Set size of an image, following the code is the width and height, delimited by 'x' (e.g. '200x300')
a Set alignment of image, the following character defines which alignment (*t*op, vertically
*m*iddle, *b*ottom, *r*ight or *l*eft). This setting is not respected by the preview.